package com.yanqu.road.entity.log.curio;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.sql.Types;
import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_curio_river_get", autoSave = true, dataUpload = true, eventName = "treasure_gift", desc = "山河赠礼日志",uploadCk = true)
public class LogCurioRiverGift extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "玩家id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "改变值", dataAttribute = "treasure_giftget")
    private long changeProcess;

    @FieldTypeAnnotation(desc = "当前值", dataAttribute = "treasure_giftlog")
    private long totalProcess;

    @FieldTypeAnnotation(desc = "1淘宝获得，2升星转换、3领取消耗", dataAttribute = "treasure_giftway")
    private int changeType;

    @FieldTypeAnnotation(desc = "变更的道具，消耗的碎片或者领取的山河赠礼",sqlType = Types.LONGNVARCHAR)
    private String goodsInfo;


    public LogCurioRiverGift(long userId, long changeProcess, long totalProcess, int changeType, String goodsInfo) {
        this.userId = userId;
        this.changeProcess = changeProcess;
        this.totalProcess = totalProcess;
        this.changeType = changeType;
        this.goodsInfo = goodsInfo;
    }

    public long getUserId() {
        return userId;
    }

}
